package com.wanho.java146.pojo;

import java.util.Date;
import java.util.List;

/**
 * (`id`, `hourly_rate`, `currency`, `employee_id`, `employer_id`, `end_date`, `start_date`)
 */
public class Employment {

    private Integer id;

    private Date start_date;

    private Date end_date;

    private MonetoryAmount hourly_rate;

    private List<Employee> employeeList;

   private Employer employer;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getStart_date() {
        return start_date;
    }

    public void setStart_date(Date start_date) {
        this.start_date = start_date;
    }

    public Date getEnd_date() {
        return end_date;
    }

    public void setEnd_date(Date end_date) {
        this.end_date = end_date;
    }

    public MonetoryAmount getHourly_rate() {
        return hourly_rate;
    }

    public void setHourly_rate(MonetoryAmount hourly_rate) {
        this.hourly_rate = hourly_rate;
    }


    @Override
    public String toString() {
        return "Employment{" +
                "id=" + id +
                ", start_date=" + start_date +
                ", end_date=" + end_date +
                ", hourly_rate=" + hourly_rate +
                ", employeeList=" + employeeList +
                ", employer=" + employer +
                '}';
    }

    public Employer getEmployer() {
        return employer;
    }

    public void setEmployer(Employer employer) {
        this.employer = employer;
    }


    public List<Employee> getEmployeeList() {
        return employeeList;
    }

    public void setEmployeeList(List<Employee> employeeList) {
        this.employeeList = employeeList;
    }

}
